import request from '@/utils/request'
// import qs from 'qs'

export const getRolePages = (data: any) =>
  request({
    method: 'POST',
    url: '/boss/role/getRolePages',
    data
  })

export const saveOrUpdate = (data: any) =>
  request({
    method: 'post',
    url: '/boss/role/saveOrUpdate',
    data
  })

export const resourceDelete = (id: string|number) =>
  request({
    method: 'delete',
    url: `/boss/role/${id}`
  })
